<div id="border"> 
<script type="text/javascript" src="<?=base_url();?>js/lightbox2.03a/js/prototype.js"></script>
<script type="text/javascript" src="<?=base_url();?>js/lightbox2.03a/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="<?=base_url();?>js/lightbox2.03a/js/lightbox.js"></script>
<link rel="stylesheet" href="<?=base_url();?>js/lightbox2.03a/css/lightbox.css" type="text/css" media="screen" />
  <form action="" method="post">
  <div class="property_line_ccc"></div>
  <div style="background:url(<?=base_url();?>images/bg_propeties.jpg); width:980px; height:266px;  color:#FFF; font-family:Arial, Helvetica, sans-serif;">
	
	<? include APPPATH."views/templates/common/property_search.php";?>
	<a class="property_ads" href="<?=site_url("property/p")?>"><div><?=$Z_TRANS->value('menu_post_property')?></div></a>
  </div>
       <table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr>
       <td valign="top">       
          <table width="99%" border="0" align="center" id="usertitle">
            <tr>
              <td><h3><b>Property Detail<b></h3></td>
              <td align="right">
                      
              </td>
            </tr>
          </table>
          <div id="content">
          <div class="user_line_border_top"></div><br />
        <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" id="detail">
          <tr>
            <td width="26%" align="right" bgcolor="#F3F3F3" class="ttd"><b><?=$Z_TRANS->value('title_name')?></b></td>
            <td width="74%" bgcolor="#F3F3F3"><?=$get_property["property_name"];?></td>
          </tr>
          <tr>
            <td align="right" bgcolor="#EEEEEE" class="ttd"><b><?=$Z_TRANS->value('title_building_size')?></b></td>
            <td bgcolor="#EEEEEE"><?=$get_property["b_size"];?></td>
          </tr>
          <tr>
            <td align="right" bgcolor="#F3F3F3" class="ttd"><b><?=$Z_TRANS->value('title_land_size')?></b></td>
            <td bgcolor="#F3F3F3"><?=$get_property["land_size"];?></td>
          </tr>
          <tr>
            <td align="right" bgcolor="#EEEEEE" class="ttd"><b><?=$Z_TRANS->value('title_floors')?></b></td>
            <td bgcolor="#EEEEEE"><?=$get_property["no_of_floor"];?></td>
          </tr>
          <tr>
            <td align="right" bgcolor="#F3F3F3" class="ttd"><b><?=$Z_TRANS->value('title_baths_room')?></b></td>
            <td bgcolor="#F3F3F3"><?=$get_property["no_of_bathroom"];?></td>
          </tr>
          <tr>
            <td align="right" bgcolor="#EEEEEE" class="ttd"><b><?=$Z_TRANS->value('title_beds_room')?></b></td>
            <td bgcolor="#EEEEEE"><?=$get_property["no_of_bedrooms"];?></td>
          </tr>
          <tr>
            <td align="right" bgcolor="#EEEEEE" class="ttd"><b><?=$Z_TRANS->value('title_parking')?></b></td>
            <td bgcolor="#EEEEEE"><?=$get_property["no_of_bedrooms"];?></td>
          </tr>
          <tr>
            <td align="right" bgcolor="#F3F3F3" class="ttd"><b><?=$Z_TRANS->value('title_features')?></b></td>
            <td bgcolor="#F3F3F3"><?=$get_property["features"];?></td>
          </tr>
          <tr>
            <td align="right" valign="top" bgcolor="#EEEEEE" class="ttd"><b><?=$Z_TRANS->value('title_description')?></b></td>
            <td bgcolor="#EEEEEE" height="100%"><?=$get_property["description"]?></td>
          </tr>
          <tr>
            <td align="right" bgcolor="#F3F3F3" class="ttd"><b><?=$Z_TRANS->value('title_location_pro')?></b></td>
            <td bgcolor="#F3F3F3"><?=$get_property["location_name"];?></td>
          </tr>
          <tr>
            <td align="right" bgcolor="#EEEEEE" class="ttd"><b><?=$Z_TRANS->value('title_date')?></b></td>
            <td bgcolor="#EEEEEE"><?=$get_property["date_create"];?></td>
          </tr>
          <tr>
            <td align="right" bgcolor="#F3F3F3" class="ttd"><b><?=$Z_TRANS->value('title_user_upload')?></b></td>
            <td bgcolor="#F3F3F3"><?=$get_property["user_upload"];?></td>
          </tr>
          <tr>
            <td align="right" bgcolor="#EEEEEE" class="ttd"><b> <?=$Z_TRANS->value('title_price')?></b></td>
            <td bgcolor="#EEEEEE">$<?=$get_property["property_price"];?></td>
          </tr>
          <tr>
            <td colspan="2" align="center">
            <br />
              <? if(count($get_pic_id->result_array())!=0){
				  $str_path = str_replace("\\", "/", FCPATH);					  
				  $file_name = current(explode(".", $get_property["pic_name"]));
				  $file_ext  = next(explode(".", $get_property["pic_name"]));
				  $filename = $str_path.$get_property['file_path'].$file_name.".".$file_ext; 
				  
				  foreach($get_pic_id->result_array() as $row_pic){
				  if($get_property["pic_name"]<>"" && file_exists ($filename)){?>
					<a href="<?=base_url();?><?=$get_property['file_path'];?><?=$file_name.".".$file_ext;?>" rel="lightbox[classify]" title=""><img src="<?=base_url();?><?=$get_property["file_path"];?><?=$row_pic['pic_name'];?>" height="32" width="32" style="border:#999 1px solid"  /></a>
				  <? }
				  }
				  }else {
					  echo $Z_TRANS->value('title_no_images');
				  }?> 
                        
              </td>
          </tr>
        </table>
			<br /> 
       	  </div>
    
                </td>
                <td width="254" valign="top">
                    <?php include APPPATH."views/templates/common/right_content.php"; ?>
                 </td>
                 
              </tr>
          </table>
	<? include APPPATH."views/templates/common/property_menu_bottom.php";?>	   
 </form> 
    
</div>